package swu.edu.cn.javaee.mapper;

import org.springframework.stereotype.Repository;
import swu.edu.cn.javaee.entity.Photo;

import java.util.List;

@Repository
public interface PhotoMapper {
    public void savePhoto(Photo photo);

    public void updatePhoto(Photo photo);

    public List<Photo> queryPhoto(String paCid);

    public void deletePhoto(String paId);

    public List<Photo> queryByName(String paName);

    public Photo queryById(String paId);

    public int queryCount(String paId);
}
